﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using ProjectEulerSolutions.Problems;

namespace ProjectEulerSolutions
{
    class Program
    {
        [STAThread]
        static void Main(string[] args)
        {        
            IProblem problem = new Problem141();

            DateTime before = DateTime.Now;
            String result = problem.Calculate();
            DateTime after = DateTime.Now;

            TimeSpan totalTime = after.Subtract(before);
            Console.WriteLine(result);
            Console.WriteLine("Time {0}h {1}m {2}s {3}ms",totalTime.Hours,totalTime.Minutes, totalTime.Seconds, totalTime.Milliseconds.ToString("000"));
            
            Clipboard.SetText(result);
            Console.ReadKey();
        }
    }
}
